package com.elecbook.media.api.config.data;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * description mongoDB配置类，记录了public访问资源的URI
 *
 * @author zken
 * @CreateDate 2024/11/16 17:43:47
 */
@Data
@Component
public class MongodbConfig {
    // exp: "http://localhost:8080/file/"
    @Value("${elecbook.mongodb.public.host}")
    public String publicHost;

    public static String IMAGE = "image/";
    public static String PDF = "pdf/";


    @Value("${elecbook.mongodb.avatar}")
    public String avatarExtern;
}
